<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <h:body>
        <ui:composition template="template.xhtml">
            <ui:define name="tituloJanela">
                #{msgs.logo}
            </ui:define>
            <ui:define name="conteudo">
                <div id="content">
                    <span>            
                        <f:view>
                            <h:form>
                                <h:panelGrid columns="2">
                                    <h:outputLabel value="#{msgs.user}" for="un"/>
                                    <h:inputText id="un" value="#{usuarioBean.username}"/>
                                    <h:outputLabel value="#{msgs.password}" for="pw"/>
                                    <h:inputSecret id="pw" value="#{usuarioBean.password}"/>
                                </h:panelGrid>
                                <h:commandButton value="#{msgs.submit}" action="#{usuarioBean.validateLogin}"/>
                            </h:form>
                        </f:view>

                    </span> 
                    <div style="clear: both;"></div>
                </div>
            </ui:define>
        </ui:composition>
    </h:body>
</html>
